package zx.x.modules.yshapp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import zx.x.common.utils.PageUtils;
import zx.x.common.utils.Query;
import zx.x.modules.yshapp.dao.CommunityAppDao;
import zx.x.modules.yshapp.entity.CommunityEntity;
import zx.x.modules.yshapp.service.CommunityService;

import java.util.Map;


@Service("communityAppService")
public class CommunityAppServiceImpl extends ServiceImpl<CommunityAppDao, CommunityEntity> implements CommunityService {
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CommunityEntity> page = this.page(
                new Query<CommunityEntity>().getPage(params),
                new QueryWrapper<CommunityEntity>()
        );

        return new PageUtils(page);
    }
}